package com.ltedu.system.service.impl;

import com.ltedu.system.domain.SysUserRole;
import com.ltedu.system.mapper.SysUserRoleMapper;
import com.ltedu.system.service.SysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 角色用户关联表 服务实现类
 * </p>
 *
 * @author Jerry
 * @since 2020-11-27
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {

    /**
     * 根据用户id进行删除
     *
     * @param userId 用户id
     */
    @Override
    public void deleteByUserId(Long userId) {
        this.baseMapper.deleteByUserId(userId);
    }
}
